<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title><{$action}>-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
	<link href="/static/public/webupload/webuploader.css" rel="stylesheet">
	<link href="/static/public/webupload/style.css" rel="stylesheet">
	<script type="text/javascript" src="/static/public/webupload/webuploader.js"></script>
	<script type="text/javascript" src="/static/public/webupload/upload.js"></script>
	<script type="text/javascript">
		var fileNumLimit = 1;
	</script>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
            <{include file="left_menu_min.html"}>
        <!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
			<!--star conter-->
			<div class="cetContent">
				<div class="tit p-lr20">
					<span><a href="/help">资讯列表</a></span>
				    <span class="curr">添加帮助</span>
				</div>
		<!--star内容区域-->
		<div class="mainScroll">
			<div class="mainContainer line-all">
				<!--star 001-->
				<form class="layui-form layui-form-pane" method="post" id="form_add_role">
					<input type="hidden" name="id" value="<{$help_info['id']|default:'0'}>" />
					<div class="layui-form-item">
						<label class="layui-form-label">标题</label>
						<div class="layui-input-block">
							<input type="text" name="title" value="<{$help_info.title|default:''}>" lay-verify="required" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">帮助分类</label>
						<div class="layui-input-block">
							<select name="cid" lay-verify="required">
								<option value="" >选择分类</option>
								<{foreach from=$category_list.result item=item}>
									<option value="<{$item.id}>" <{if isset($help_info.cid) && $item.id==$help_info.cid}>selected=selected<{/if}>><{$item.name}></option>
								<{/foreach}>
							</select>
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">是否启用</label>
						<div class="layui-input-block">
								<{assign var="status" value=$help_info.status|default:"1"}>
								<input type="checkbox" <{if $status == 1}> checked <{/if}> name="status" lay-skin="switch" lay-filter="switchTest" value="1" >
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">排序</label>
							<div class="layui-input-block">
								<input type="text" name="sort" value="<{$help_info.sort|default:'0'}>" autocomplete="off" class="layui-input">
							</div>
					</div>

					<div class="layui-form-item layui-form-text">
						<input type="hidden" id="token" value="<{'VIMG'|get_qiniu_token}>" />
						<label class="layui-form-label">封面图</label>
						<div class="layui-input-block" style="margin-top: 5px;">
							<div id="uploader2" class="upload_box" style="float:left; width:420px;">
								<div class="queueList">
									<div id="dndArea2" class="placeholder dndArea">
										<div id="filePicker2" class="filePicker"></div>
										<p>或将照片拖到这里，最多可上传<script>document.write(fileNumLimit);</script>张图片</p>
									</div>
								</div>
								<div class="statusBar" style="display:none;">
									<div class="progress">
										<span class="text">0%</span>
										<span class="percentage"></span>
									</div><div class="info"></div>
									<div class="btns">
										<div id="filePickerBut2" class="filePickerBut"></div><div class="uploadBtn">开始上传</div>
									</div>
								</div>
								<div class="upload_img_input" input_name='img'></div>
							</div>
							<{if isset($help_info['img']) AND $help_info['img'] != ''}>
								<div class="layui-inline" style="float:left;"><img src="<{$help_info['img']}>" style="max-height:175px;"/></div>
							<{/if}>
						</div>
					</div>

					<div class="layui-form-item layui-form-text">
						<label class="layui-form-label">摘要</label>
						<div class="layui-input-block">
							<textarea name="paper" class="layui-textarea"><{$help_info.paper|default:""}></textarea>
						</div>
					</div>

					<div class="layui-form-item layui-form-text">
						<label class="layui-form-label">内容</label>
						<div class="layui-input-block">
							<textarea class="layui-textarea layui-hide editor" name="content" id="editor"><{$help_info.content|default:""}></textarea>
						</div>
					</div>

					<div class="layui-input-block">
						<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</form>
				<!--end 001-->
				
			</div>
			
		</div>
		<!--end内容区域-->
		</div>
	</div>
</div>
<{include file="footer.html"}>
</body>
</html>